<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../tool/vue.min.js"></script>
</head>

<body>
    <div class="box">

    </div>
    <script>
        //创建组件
        const school = Vue.extend({
            template: `
            <div>
                学校名称:<h1>{{schoolname}}</h1>
                学校年限:<h1>{{schoolage}}</h1>
            </div>
            `,
            data(){
                return {
                    schoolname:'坤坤大学',
                    scoolage:18
                }
            }
        })



    </script>
</body>

</html>